<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\controllers\SearchGameController */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="game-search">

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
    ]); ?>

    <?= $form->field($model, 'uid')->dropDownList(\yii\helpers\ArrayHelper::map(\app\models\People::find()->all(),'id','mobile'), ['prompt'=>'请选择','style'=>'width:200px']) ?>

    <?= $form->field($model, 'role_id')->radioList(\yii\helpers\ArrayHelper::map(\app\models\Role::find()->all(),'id','name')) ?>

    <?= $form->field($model, 'win')->radioList(\yii\helpers\ArrayHelper::map(\app\models\Win::find()->all(),'id','name')) ?>
    <div class="form-group">
        <?= Html::submitButton(Yii::t('app', '查询'), ['class' => 'btn btn-primary']) ?>
        <?= Html::resetButton(Yii::t('app', '清空'), ['class' => 'btn btn-default']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
